{include file=$header_start}
{strip}
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/find_job_list.css">
{/strip}
{include file=$header_end}


<section class="middle_portion">
	<section class="inner_head">Find Get-Bids Request for Quotes</section>
    <section class="inner_containstart">
    	<section class="inner_leftportion">
        	<section class="brows_tra_box">
            	
 <?php 
 
 /* 
 Using this method 
 you can create a larger block of text 
 and it will all be commented out 
 */ 

 ?> 



        </section>
        </section>
        
        <section class="inner_rightportion">
        	<section class="find_title">Find Job</section>
        	<section class="fin_job_top_srh_box">
            <form name="searchfrm" id="searchfrm" action="{$siteroot}/jobs/findjobs/" method="POST" >
            	<select class="select" name="trade" id="trade" >
                	<option value="0">Select Industry</option>
                    {section name=t loop=$getallTradeCat} 
	                	<option {if $trade eq $getallTradeCat[t].id} selected="selected" {/if} value="{$getallTradeCat[t].id}" >{$getallTradeCat[t].trade_category}</option>
                    {/section}
                </select>
                <select class="select" name="jobtype" id="jobtype">
                	<option value="0">Select Job Type</option>
                    {section name=t loop=$getallTradeJobType} 
	                	<option value="{$getallTradeJobType[t].id}" {if $jobtype eq $getallTradeJobType[t].id} selected="selected" {/if}>{$getallTradeJobType[t].trade_category}</option>
                    {/section}
                </select>
                <input type="text" class="input" name="postalcode" id="postalcode" {if $postalcode neq ''} value="{$postalcode}" {/if} placeholder="Postcode" />
                <input type="submit" value="Search" class="btn btnwdth70" />
             </form>   
                <section class="clear"></section>
            </section>
            <section class="mainbox_findjobs">
            
            <section class="find_job_table">
            	<dl>
                	<dt class="col1">{$recordsFound} Matching Open Enquiries</dt>
                    <dt class="col2">State(Postcode)</dt>
                    <dt class="col3">Date Posted</dt>
                    {if $smarty.session.getbids_id}
                    <dt class="col4">Interest</dt>
                    <dt class="col5">&nbsp;</dt>
                    {else}
                    	<dt class="col4">&nbsp;</dt>
                        <dt class="col5">&nbsp;</dt>
                    {/if}
                    <section class="clear"></section>
                </dl>
				{section name=i loop=$jobsArray}                
            	<dl>
                	<dd class="col1">
                    	<h5><a href="{$siteroot}/jobs/{$jobsArray[i].postjob_id|base64_encode}/findjobdetail/">{$jobsArray[i].job_desc|truncate:40:""}</a></h5>
                        <h6>{$jobsArray[i].tradename}</h6>
                    </dd>
                    <dd class="col2"><h4>{$jobsArray[i].state_name}</h4> 
                    <h6>{$jobsArray[i].area}</h6>
                    </dd>
                    <dd class="col3">{$jobsArray[i].date_added|date_format:"%d/%m/%y"}</dd>
                    {if $smarty.session.getbids_id}
	                    <dd class="col4">{if $smarty.session.getbids_id}{$jobsArray[i].counttradesmaninterested} Providers interested{/if}</dd>
    	                <dd class="col5"><a {if $smarty.session.getbids_id} href="{$siteroot}/jobs/{$jobsArray[i].postjob_id|base64_encode}/findjobdetail/" {else} href="{$siteroot}/signin/" {/if}  class="btn">View Enquiry</a></dd>
					{else}				                        
                    	<dd class="col4" style="padding-left:80px;"><a href="{$siteroot}/jobs/{$jobsArray[i].postjob_id|base64_encode}/findjobdetail/" class="btn">View Enquiry</a></dd>
                    {/if}
                    <section class="clear"></section>
                </dl>
                {sectionelse}
                    	<div class="error" style="padding:10px;text-align:center;">Oops, Sorry there are no job.</div>
                {/section}
                
                  {if $pagenation}
                    <section class="pagna">
                    {$pagenation}
                    </section>
                {/if}
          <section class="clear"></section>
            </section>
                     <section class="clear"></section>
                 	 <section class="bgimg_shadow"></section>
                 	<section class="clear"></section>
                </section>
            
            
            
            
            
        </section>
        <section class="clear"></section>
    </section>
</section>

{include file=$footer}